Skip to content

Script action for repairing destroyed bridges - #791

Open
FS-21 wants to merge 41 commits into
Phobos-developers:developfrom
FS-21:feature/script-action-repair-destroyed-bridge
Open

Script action for repairing destroyed bridges#791
FS-21 wants to merge 41 commits into
Phobos-developers:developfrom
FS-21:feature/script-action-repair-destroyed-bridge

Conversation

@FS-21

@FS-21 FS-21 commented Nov 8, 2022

Copy link
Copy Markdown
Contributor
  • Picks a Bridge Repair Hut from the map that is linked with a bridge with destroyed sections and is reachable by engineers and then send the Taskforce against it.
  • The Taskforce must have any engineer and (Bridge Repair Huts in the map) or the script will end.
  • Puts non-engineers into Area Guard mode when they arrive near the Bridge Repair Hut location.
  • Only are evaluated Bridge Repair Huts that can be reached by the Engineers.

In aimd.ini:
[SOMESCRIPTTYPE] ; ScriptType
x=10105,n ; integer, mode for selecting Bridge Repair Huts

  • The possible argument values are:
    0 -> Pick the closest
    1 -> Pick the Farthest
    -1 -> Pick Random

FS-21 added 6 commits November 5, 2022 08:42
With the Bridge validation check
Now the script action argument can be used to select a mode:
0: Closest Repair Hut with destroyed bridge.
1: Farthest Repair Hut with destroyed bridge.
-1: Random Repair Hut with destroyed bridge.

Important: now Engineers will pick only Repair Huts that can be reached.
Now is the action 10104 and added documentation.
@github-actions

github-actions Bot commented Nov 8, 2022

Copy link
Copy Markdown

Nightly build for this pull request:

Comment thread src/Ext/Script/Body.cpp Outdated
@Starkku
Starkku force-pushed the develop branch 2 times, most recently from aae92fd to a32076e Compare June 3, 2023 10:14
@FS-21

FS-21 commented Sep 29, 2023

Copy link
Copy Markdown
Contributor Author

Internal rewrite of the feature.

Thanks to Starkku I don't need to do a pathfinding routine, simplifying the code doing the same.

@github-actions

github-actions Bot commented Sep 29, 2023

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@TaranDahl TaranDahl added ❓New feature ⚙️T2 T2 maintainer review is sufficient labels Mar 20, 2025
@Starkku
Starkku force-pushed the develop branch 2 times, most recently from b429215 to 280b1c8 Compare June 29, 2025 19:13
@DeathFishAtEase
DeathFishAtEase force-pushed the feature/script-action-repair-destroyed-bridge branch from c1b444d to 6ee3115 Compare December 21, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs improvement ❓New feature ⚙️T2 T2 maintainer review is sufficient

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants